<?php
require_once '../core/fcCommon.php';

//$input = getJsonFromRequest();
//$i = 0;
//echo "{";
//foreach ($input as $key => $value) {
//    if($i > 0){
//        echo ",";
//    }
//    echo "\"".$key."\"";
//    echo ":";
//    echo "\"".$value."\"";
//    $i++;
//}
//echo "}";

$obj = new Map();

$objs = array();
$obj1 = new Map();
$obj1->put("A1", 1);
$obj2 = new Map();
$obj2->put("A2", 2);
$objs[0] = $obj1;
$objs[1] = $obj2;

$obj->put("objs", $objs);

$obj->put("my_key", 1);
$obj->put("my_val", "A");

$obj2 = new Map();
$obj2->put("a1", 1);
$obj2->put("a2", 2);
$obj->put("my_obj", $obj2);



echo $obj->toJson();
?>
